var path = require('path');
var webpack = require('webpack');
var base = require('./base');


module.exports = {
    entry: {
        dll: ['react', 'react-dom', 'react-router-dom', 'react-loadable']
    },
    output: {
        path: path.join(process.cwd() + '/dll'),
        filename: '[name].js',
        library: '[name]'
    },
    plugins: [
        new webpack.DllPlugin({
            path: 'manifest.json',
            name: '[name]'
        })
    ],
    module: base.module,
    resolve: base.resolve
}